package com.intelligent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 部门信息表
 * 
 * @TableName department
 */
@TableName(value = "department")
@Data
public class Department implements Serializable {
    /**
     * 部门id
     */
    @TableId(type = IdType.AUTO)
    private Long departmentId;

    /**
     * 部门编号
     */
    private String departmentCode;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 部门描述
     */
    private String departmentDesc;

    /**
     * 部门负责人/班组长
     */
    private Long uId;

    /**
     * 员工数
     */
    private Integer employeeCount;

    /**
     * 启用状态0启用，1禁用
     */
    private Integer status;

    /**
     * 负责人姓名（通过登录服务Feign获取），非持久化
     */
    @TableField(exist = false)
    private String leaderName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}